package com.bdqn.hospital.mapper;

import com.bdqn.hospital.pojo.Drug;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @version : 1.0
 * @Author :guogd
 * @createTime: 2023/03/01 14:30
 * @Description: com.bdqn.hospital.mapper
 */
@Mapper
public interface DrugMapper {

    /**
     *根据id查询药品信息表
     * @param
     * @return
     */
    @Select("select * from drug where id=#{drugId}")
    Drug getDrugById(@Param("drugId") Integer drugId);
}
